local skill = fk.CreateSkill {
  name = "ling__nullification_skill",
}

skill:addEffect("cardskill", {
  can_use = Util.FalseFunc,
  on_effect = function(self, room, effect)
    if effect.responseToEvent then
      effect.responseToEvent.isCancellOut = true
    end
  end,
})

skill:addEffect(fk.PreCardUse, {
  global = true,
  can_refresh = function(self, event, target, player, data)
    return target == player and not table.contains(player.room.disabled_packs, "ling_cards") and
      data.card.type == Card.TypeTrick and data.card.multiple_targets
  end,
  on_refresh = function(self, event, target, player, data)
    data.unoffsetableList = table.simpleClone(player.room.players)
  end,
})

return skill
